<link rel="stylesheet" type="text/css" media="screen" href="<?php echo stylesheet_path('themes/default/default.css') ?>"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo stylesheet_path('themes/light/light.css') ?>"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo stylesheet_path('themes/dark/dark.css') ?>"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo stylesheet_path('themes/bar/bar.css') ?>"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo stylesheet_path('nivo-slider.css') ?>"/>

<?php $culture = $sf_user->getCulture() ?>
<div id="wrapper">

    <div class="slider-wrapper theme-default">
        <div id="slider" class="nivoSlider">
            <?php if (!empty($images)) { ?>
                <?php foreach ($images as $key=>$one) { ?>
                    <?php $image = get_resized_image(594, 414, sfConfig::get('sf_upload_dir') . "/university_news_$culture/" . $one['image_' . $culture]); ?>
                    <img src="<?php echo $image ?>" data-thumb="<?php echo $image ?>" title="<?php echo "#" . $key.'_'.$one['id'] ?>"/>
                <?php } ?>
            <?php } ?>
        </div>
            <?php if (!empty($images)) { ?>
                <?php foreach ($images as $key => $one) { ?>
        <div id="<?php echo $key.'_'.$one['id'] ?>" class="nivo-html-caption">
            <p><?php echo $one['text_'.$culture] ?></p>
        </div>
                <?php } ?>
        <?php } ?>
    </div>

</div>
<script type="text/javascript" src="<?php echo javascript_path('jquery.nivo.slider.js') ?>"></script>
<script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider();
    });
</script>